
Koban Agalder
Future Corps Sleeper Social Club
23
|
Posted - 2013.11.22 11:35:00 -
[1] - Quote
Solution might not be so difficult.
Create new special wallet division for every player named "Broker Guaranteed Escrow" (or something like that).
Now when a buy order is created the player transfer ISK to this special wallet division (which he has no direct aceess to except seeing how much ISK is there, he cannot easily transfer money back to his main wallet). The amount of ISK transfered is equal to minimal buy amount*buy price. So it is guaranteed that at least one iteam will be bought.
Now. In case of several buy orders only the most expensive is taken in account. If you have 10 different buy orders for 10 different types of iteams which have the same price and minimal buy amount the money transfered to new "BGE" is equal to minimal buy of one of this contract.
Now you do not have to constat monitor ever wallet, and every money transfer. If someone want to fullfill buy order money is taken directly from seller wallet (so "BGE" is used as last resort as a source of money). If the money has to be taken from "BGE" (no liquid ISK in wallet), then check is made if there is enough ISK to cover minimal buy amount*price, if not cancel most expensive order. Repeat untill "BGE" ISK is greater or there are no other orders.
Pluses: -No need to constant monitor of someone wallet (you cannot constantly monitor someone's deductions and check his buy orders). Money is locked at the moment of creating order, and after every attempt to fill the order. Less calculations! - No have only part of the ISK "locked" in "BGE". If you your isk back from "BGE" just cancel buy orders (starting from most expensive one).
Bonus: In case of cancelling buy orders becouse "BGE" is not sufficient you many with help of CCP Karkour (sory for mispellinng!) cancel them and mark them as "suspended" so player if he/she wishes may easily get more liquid ISK, transfer and then "reaplly" the orders (less click to redo the suspended orders), of course he/she must have enought ISK to cover minimal amount*price, said ISK will be imidietly transfered to "BGE"
Do I get cookie?
Or should I write it as a story for agile programming? James Arget for CSM 8!-áhttp://csm.fcftw.org-á |